package org.dragonnova.meetingapp.core.message;

/**
 * Created by hucn on 2016/6/2.
 * Description:消息构造器的抽象类
 */
public abstract class Builder {

    public abstract Builder setAction(byte[] action);

    public abstract Builder setData(byte[] bytes);

    public abstract Builder setDataLength(int length);

    public abstract Message create();

    public abstract byte[] encode();

    public abstract Message decode(byte[] bytes);

    public abstract Builder setEmpty();
}
